<?php
function wpboxes_sssb () { ?>
<div class="share_post">
	<div class="facebook"><div class="fb-like" data-href="<?php urlencode(get_permalink()); ?>" data-send="false" data-layout="button_count" data-width="40" data-show-faces="false" data-font="verdana"></div></div>
	<div class="tweeter_post"><a href="https://twitter.com/share" class="twitter-share-button" data-url="<?php if (function_exists('wp_get_shortlink')) { echo wp_get_shortlink(get_the_ID()); }?>" data-counturl="<?php the_permalink(); ?>" data-text="<?php get_the_title(); ?>" data-via="itsabhik" data-related="itsabhik">Tweet</a></div>
	<div class="bufferapp"><a href="http://bufferapp.com/add" class="buffer-add-button" data-text="<?php echo get_the_title(); ?>" data-url="<?php get_permalink(); ?>" data-count="horizontal" data-via="itsabhik" >Buffer</a></div>
	<div class="linkedin"><script type="IN/Share" data-url="<?php get_permalink(); ?>" data-counter="right"></script></div>
	<div class="pinterest"><a href="http://pinterest.com/pin/create/button/?url=<?php echo urlencode(get_permalink()) ?>&amp;media=&amp;description=<?php echo get_the_title(); ?>" class="pin-it-button" count-layout="horizontal"><img src="//assets.pinterest.com/images/PinExt.png" title="Pin It" /></a></div>
	<div class="google1"><div class="g-plusone" data-size="tall" data-annotation="inline" data-width="250"></div></div>
</div>

<?php }

function wpboxes_sssb_scripts() { 
if (is_single()) { ?>
<script type="text/javascript">
<!--
var a=["//apis.google.com/js/plusone.js","//platform.twitter.com/widgets.js","//connect.facebook.net/en_US/all.js#xfbml=1&appId=443232819034567","http://static.bufferapp.com/js/button.js","//platform.linkedin.com/in.js"];for(script_index in a){var b=document.createElement("script");b.type="text/javascript";b.async=!0;b.src=a[script_index];var c=document.getElementsByTagName("script")[0];c.parentNode.insertBefore(b,c)};
// -->
</script>
<script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script>
<?php }
}
add_action('wp_footer', 'wpboxes_sssb_scripts', 1968);
?>